package com.iot.comprehensive.face.model;

import com.fasterxml.jackson.annotation.*;
import com.sun.istack.NotNull;
import lombok.Data;

import javax.persistence.*;

/**
 * @Author 朱泽玉
 * @Create 2021/6/25 10:09
 * @Description 账号表
 * @Modified By:
 */
@Entity
@Data
public class Account {
    @Id
    private Long id;

    @NotNull
    private String mobile;

    @NotNull
    private String password;

    @NotNull
    private int isCertified;

    @NotNull
    private String identity;

    //对应的用户
//    @OneToOne(mappedBy = "account",cascade = {CascadeType.ALL})
//    @JsonIgnoreProperties({"account"})
//    private User user;

    //对应的管理员
//    @OneToOne(mappedBy = "account",cascade = {CascadeType.ALL})
//    private Admin admin;

    //对应的管理员
//    @OneToOne(mappedBy = "account")
//    private Host host;
}
